How to find and replace an element in a list with Python

welcome to shbcf.ru